package com.ygkj.demo.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter

class ViewPage2Adapter(context: FragmentActivity, var listFrament: ArrayList<Fragment>) :
    FragmentStateAdapter(context) {

    override fun getItemCount(): Int = listFrament.size

    override fun createFragment(position: Int): Fragment = listFrament[position]
}